import { request } from '@boeyo/portal';

/**
 * 获取设备厂商下拉框数据
 */
export const getDeviceManufacturerSelect = (type) => {
  return request({
    url: '/manufacturer/selectList?type=' + type,
    method: 'GET',
  });
};

/**
 * 获取设备型号下拉框数据
 */
export const getDeviceModelSelect = (params: any) => {
  return request({
    url: '/deviceModel/option',
    method: 'GET',
    params,
  });
};

/**
 * 获取设备所属项目下拉框数据
 */
export const getDeviceProjectSelect = () => {
  return request({
    url: '/project/selectList',
    method: 'GET',
  });
};
/**
 * 获取设备供电设备下拉框数据
 */
export const getDevicePowerSelect = () => {
  return request({
    url: '/powerSupply/selectList',
    method: 'GET',
  });
};
